package com.SpringBoot.location.pojo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;

import java.io.Serializable;

/**
 * <p>
 * 用户地址表
 * </p>
 *
 * @author bxk
 * @since 2025-09-19
 */
@Data
@TableName("location")
public class Location implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 用户地址表主键
     */
    @TableId(value = "location_id", type = IdType.AUTO)
    private Integer locationId;

    /**
     * 外键关联用户表
     */
    @TableField("user_id")
    private Integer userId;

    /**
     * 用户地址
     */
    @TableField("location")
    private String location;

    /**
     * 0-启用 1-删除
     */
    @TableField("is_deleted")
    private Integer isDeleted;

    public Integer getLocationId() {
        return locationId;
    }

    public void setLocationId(Integer locationId) {
        this.locationId = locationId;
    }
    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }
    public String getLocation() {
        return location;
    }

    public void setLocation(String location) {
        this.location = location;
    }
    public Integer getIsDeleted() {
        return isDeleted;
    }

    public void setIsDeleted(Integer isDeleted) {
        this.isDeleted = isDeleted;
    }

    @Override
    public String toString() {
        return "Location{" +
            "locationId=" + locationId +
            ", userId=" + userId +
            ", location=" + location +
            ", isDeleted=" + isDeleted +
        "}";
    }
}
